<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('智慧校园-试卷打印')" />
</head>
<style>
    .input_line{
        border-bottom: 1px solid #000;
        border-top: 0px;
        border-left: 0px;
        border-right: 0px;
        outline: none;
    }
</style>
<body class="white-bg">
<div class="navbar navbar-inverse navbar-fixed-top ">
    <div class="container-fluid">
        <button class="fa fa-print btn btn-primary btn-sm " onclick="print()">打印</button>
    </div>
</div>
<div class="wrapper wrapper-content animated fadeInRight ibox-content" id="print_content" style="margin-top: 28px;" >
    <form class="form-horizontal m" id="form-psychologicaRecord-add">

        <div th:each="type,stat:${answer}" class="form-group col-md-offset-4">



            <h4 th:if="${type.key == 1}">单项选择题部分</h4>
            <h4 th:if="${type.key == 2}">填空题部分</h4>
            <h4 th:if="${type.key == 3}">简答题部分</h4>
            <h4 th:if="${type.key == 4}">多项选择题部分</h4>
            <h4 th:if="${type.key == 5}">汉译英部分</h4>
            <h4 th:if="${type.key == 6}">英译汉部分</h4>
            <h4 th:if="${type.key == 7}">论述题部分</h4>

            <div class="col-sm-10 checkbox m-l m-r-xs" th:each="anserList,w:${type.value}">


                <strong class="m-b-lg">[[${w.index+1}]].</strong>
                <div  th:each="answer:${anserList.value}">
                    <!--显示正确答案-->
                    <div th:if="${answer.result} eq 1">
                        <span th:utext="${answer.content}"></span>
                    </div>

                </div>

            </div>


        </div>


    </form>



</div>
<th:block th:include="include :: footer" />
<script th:src="@{/jasonday-printThis/printThis.js}"></script>
<script type="text/javascript">

    function print(){
        $("#print_content").printThis();
    }
</script>
</body>
</html>